Class symantec.itools.db.beans.brl.adapter.ValidationAdapter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.adapter.ValidationAdapter

Object
   |
   +----ComputedColAdapter
           |
           +----symantec.itools.db.beans.brl.adapter.ValidationAdapter

public class ValidationAdapter
extends ComputedColAdapter
implements Serializable
Class which glues validation business rule implementation classes with QueryNavigator, RecordDefinition and database events.

Version:
1.0 07/24/98
Author:
Puru Balakrishnan

Variable Index

 o FULLY_QUAL_NAME
 o OUTDATATYPE_STR
 o VALIDATION_TITLE
 o comparisionOperators
 o customMessage
 o displayDialogOnFail
 o listeners
 o printMessageToLog
 o targetColumns

Constructor Index

 o symantec.itools.db.beans.brl.adapter.ValidationAdapter()
Default constructor

Method Index

 o addValidationEventListener(ValidationEventListener)
Method to add a ValidationEventListener
 o delegateComputation()
 o fireValidationEvent(boolean)
 o getComparisionOperators()
Method to get a list of Comparison Operators
 o getCustomMessage()
Method to get the custom message
 o getOutputNameNotAvailMsg()
 o getTargetColumns()
Method to get a list of target columns
 o getValidationRow()
 o handleValidationException(ValidationException)
 o initComputeRow(PersistentObject)
 o initComputeRow(Object, int)
 o initSourceMembers()
 o initTargetColumns(PersistentObject)
 o initTargetColumns(Object, int)
 o initTargetColumns(Object, String)
 o initTargetMembers()
 o isAllInputsInitialized()
 o isAllTargetInputsInitialized()
 o isColumnInRecordChange(PersistentObject)
 o isColumnInRule(int)
 o isColumnIndexModified(CompColInputMember[], Vector)
 o isDisplayDialogOnFail()
Method to find out if dialog is to be displayed if validation failed
 o isPrintMessageToLog()
Method to find out if the validation message is to be printed out to the log window
 o performDIValueChange(Object, String)
 o processAfterColumnChangeEvent(ColumnDataEvent)
 o processAfterRecordNavigateEvent(RecordNavigateEvent)
 o processAfterRecordSaveEvent(RecordSaveEvent)
 o processBeforeColumnChangeEvent(ColumnDataEvent)
 o processBeforeRecordNavigateEvent(RecordNavigateEvent)
 o processBeforeRecordSaveEvent(RecordSaveEvent)
 o processBorderRecordEvent(RecordNavigateEvent)
 o processSingletonRowChange(RecordNavigateEvent)
 o processSingletonRowChange(RecordSaveEvent)
 o processSingletonRowChange(PersistentObject)
 o reInitStatusForMembers()
 o reInitStatusForTargetMembers()
 o removeValidationEventListener(ValidationEventListener)
Method to remove a ValidationEventListener
 o setComparisionOperators(OperatorMember[])
Method to set the Comparision Operators
 o setCustomMessage(String)
Method to set the custom message
 o setDisplayDialogOnFail(boolean)
Method to set if dialog is to be displayed if validation failed
 o setPrintMessageToLog(boolean)
Method to set if validation message is to be printed to log window if validation failed
 o setTargetColumns(CompColInputMember[])
Method to set a list of target columns
 o setValueInRow(DataBindingsChangeEvent)
 o validate()

Method to force the validation by the adapter.

Variables

 o FULLY_QUAL_NAME
public static final java.lang.String FULLY_QUAL_NAME
 o OUTDATATYPE_STR
public static final java.lang.String OUTDATATYPE_STR
 o VALIDATION_TITLE
public static java.lang.String VALIDATION_TITLE
 o comparisionOperators
protected symantec.itools.db.beans.brl.OperatorMember[] comparisionOperators
 o customMessage
protected java.lang.String customMessage
 o displayDialogOnFail
protected boolean displayDialogOnFail
 o listeners
protected transient java.util.Vector listeners
 o printMessageToLog
protected boolean printMessageToLog
 o targetColumns
protected symantec.itools.db.beans.brl.CompColInputMember[] targetColumns

Constructors

 o ValidationAdapter
public ValidationAdapter()
Default constructor

Methods

 o addValidationEventListener
public void addValidationEventListener(ValidationEventListener l)
Method to add a ValidationEventListener

Parameters:
listener - ValidationEventListener to be added
 o delegateComputation
protected void delegateComputation()
Overrides:
delegateComputation in class ComputedColAdapter
 o fireValidationEvent
protected void fireValidationEvent(boolean valid)
 o getComparisionOperators
public symantec.itools.db.beans.brl.OperatorMember[] getComparisionOperators()
Method to get a list of Comparison Operators

Returns:
array of CompColMember
 o getCustomMessage
public java.lang.String getCustomMessage()
Method to get the custom message

Returns:
String
 o getOutputNameNotAvailMsg
protected java.lang.String getOutputNameNotAvailMsg()
Overrides:
getOutputNameNotAvailMsg in class ComputedColAdapter
 o getTargetColumns
public symantec.itools.db.beans.brl.CompColInputMember[] getTargetColumns()
Method to get a list of target columns

Returns:
array of CompColMember
 o getValidationRow
protected symantec.itools.db.beans.brl.ValidationRow getValidationRow()
 o handleValidationException
protected synchronized void handleValidationException(ValidationException e)
 o initComputeRow
protected void initComputeRow(PersistentObject recordObj)
Overrides:
initComputeRow in class ComputedColAdapter
 o initComputeRow
protected void initComputeRow(Object value,
                              int columnIndex)
Overrides:
initComputeRow in class ComputedColAdapter
 o initSourceMembers
protected void initSourceMembers()
Overrides:
initSourceMembers in class ComputedColAdapter
 o initTargetColumns
protected void initTargetColumns(PersistentObject recordObj)
 o initTargetColumns
protected void initTargetColumns(Object value,
                                 int columnIndex)
 o initTargetColumns
protected void initTargetColumns(Object value,
                                 String dataItemName)
 o initTargetMembers
protected void initTargetMembers()
 o isAllInputsInitialized
protected boolean isAllInputsInitialized()
Overrides:
isAllInputsInitialized in class ComputedColAdapter
 o isAllTargetInputsInitialized
protected boolean isAllTargetInputsInitialized()
 o isColumnInRecordChange
protected boolean isColumnInRecordChange(PersistentObject recordObj)
 o isColumnInRule
protected boolean isColumnInRule(int index)
Overrides:
isColumnInRule in class ComputedColAdapter
 o isColumnIndexModified
protected boolean isColumnIndexModified(CompColInputMember[] arrColMember,
                                        Vector vIndexes)
 o isDisplayDialogOnFail
public boolean isDisplayDialogOnFail()
Method to find out if dialog is to be displayed if validation failed

Returns:
true if dialog is to be displayed if validation failed.
 o isPrintMessageToLog
public boolean isPrintMessageToLog()
Method to find out if the validation message is to be printed out to the log window

Returns:
true if validation message is going to the log window
 o performDIValueChange
protected void performDIValueChange(Object value,
                                    String dataItemName)
Overrides:
performDIValueChange in class ComputedColAdapter
 o processAfterColumnChangeEvent
protected void processAfterColumnChangeEvent(ColumnDataEvent e)
Overrides:
processAfterColumnChangeEvent in class ComputedColAdapter
 o processAfterRecordNavigateEvent
protected void processAfterRecordNavigateEvent(RecordNavigateEvent e)
Overrides:
processAfterRecordNavigateEvent in class ComputedColAdapter
 o processAfterRecordSaveEvent
protected void processAfterRecordSaveEvent(RecordSaveEvent e)
Overrides:
processAfterRecordSaveEvent in class ComputedColAdapter
 o processBeforeColumnChangeEvent
protected void processBeforeColumnChangeEvent(ColumnDataEvent e)
Overrides:
processBeforeColumnChangeEvent in class ComputedColAdapter
 o processBeforeRecordNavigateEvent
protected void processBeforeRecordNavigateEvent(RecordNavigateEvent e)
Overrides:
processBeforeRecordNavigateEvent in class ComputedColAdapter
 o processBeforeRecordSaveEvent
protected void processBeforeRecordSaveEvent(RecordSaveEvent e)
Overrides:
processBeforeRecordSaveEvent in class ComputedColAdapter
 o processBorderRecordEvent
protected void processBorderRecordEvent(RecordNavigateEvent e)
Overrides:
processBorderRecordEvent in class ComputedColAdapter
 o processSingletonRowChange
protected void processSingletonRowChange(RecordNavigateEvent e)
Overrides:
processSingletonRowChange in class ComputedColAdapter
 o processSingletonRowChange
protected void processSingletonRowChange(RecordSaveEvent e)
Overrides:
processSingletonRowChange in class ComputedColAdapter
 o processSingletonRowChange
protected void processSingletonRowChange(PersistentObject recordObj)
Overrides:
processSingletonRowChange in class ComputedColAdapter
 o reInitStatusForMembers
protected void reInitStatusForMembers()
Overrides:
reInitStatusForMembers in class ComputedColAdapter
 o reInitStatusForTargetMembers
protected void reInitStatusForTargetMembers()
 o removeValidationEventListener
public void removeValidationEventListener(ValidationEventListener l)
Method to remove a ValidationEventListener

Parameters:
listener - ValidationEventListener to be removed
 o setComparisionOperators
public void setComparisionOperators(OperatorMember[] operators)
Method to set the Comparision Operators

Parameters:
operators - array of Comparision Operators
 o setCustomMessage
public void setCustomMessage(String msg)
Method to set the custom message

Parameters:
String - new msg
 o setDisplayDialogOnFail
public void setDisplayDialogOnFail(boolean val)
Method to set if dialog is to be displayed if validation failed

Parameters:
val - a boolean to display dialog on validation failure.
 o setPrintMessageToLog
public void setPrintMessageToLog(boolean val)
Method to set if validation message is to be printed to log window if validation failed

Parameters:
val - a boolean to set the validation message to the log window
 o setTargetColumns
public void setTargetColumns(CompColInputMember[] cols)
Method to set a list of target columns

Parameters:
cols - array of CompColInputMember
 o setValueInRow
protected void setValueInRow(DataBindingsChangeEvent e)
 o validate
public synchronized void validate()

Method to force the validation by the adapter. This method can be used if validation needs to be applied at the user's discretion using the current set of data


All Packages  Class Hierarchy  This Package  Previous  Next  Index